<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>axiosTest</title>
</head>
<body>

</body>


<script src="node_modules/axios/dist/axios.js"></script>
<script>
    var data=JSON.stringify({"params":'hehe'});
    var url="http://localhost:8080/api/query/text";
    axios.post(url, data)
        .then(function(data){
            console.log(data)
        })
        .catch(function(error){
            console.log(error)
        })
</script>

</html>